package czy.demo.config;

import org.springframework.data.hadoop.config.common.annotation.AnnotationBuilder;
import org.springframework.data.hadoop.config.common.annotation.ObjectPostProcessor;
import org.springframework.yarn.config.annotation.SpringYarnConfigs;
import org.springframework.yarn.config.annotation.SpringYarnConfigurerAdapter;
import org.springframework.yarn.config.annotation.builders.*;

/**
 * yarn配置
 */
//@EnableYarn
//@Configuration
public class SpringYarnConfig extends SpringYarnConfigurerAdapter {

    @Override
    public void setObjectPostProcessor(ObjectPostProcessor<Object> objectPostProcessor) {
        super.setObjectPostProcessor(objectPostProcessor);
    }

    @Override
    public void configure(SpringYarnConfigBuilder builder) throws Exception {
        super.configure(builder);
    }

    @Override
    public void configure(YarnConfigConfigurer config) throws Exception {
        super.configure(config);
    }

    @Override
    public void configure(YarnResourceLocalizerConfigurer localizer) throws Exception {
        super.configure(localizer);
    }

    @Override
    public void configure(YarnEnvironmentConfigurer environment) throws Exception {
        super.configure(environment);
    }

    @Override
    public void configure(YarnClientConfigurer client) throws Exception {
        super.configure(client);
    }

    @Override
    public void configure(YarnAppmasterConfigurer master) throws Exception {
        super.configure(master);
    }

    @Override
    public void configure(YarnContainerConfigurer container) throws Exception {
        super.configure(container);
    }

    @Override
    public boolean isAssignable(AnnotationBuilder<SpringYarnConfigs> builder) {
        return super.isAssignable(builder);
    }
}
